﻿/*
* 创建人:            @Model.Author
* 创建时间:          @Model.CreateTime
* 邮箱：             @Model.EmailAddress
* 文件功能描述：      @Model.FileRemark
*
* 修改人：
* 时间：
* 修改说明：
*/
@{
    Layout = null;
}
@using System
@using System.Collections.Generic
@using SJNScaffolding.Models.CollectiveType
@model SJNScaffolding.Models.TemplateModels.ViewFileModel
using System.Collections.Generic;
using Abp.AutoMapper;
using @(Model.ProjectName).Domain.Common.Files.Dto;
using @(Model.ProjectName).Domain.Plat.@(Model.TableName)s.Dto;
namespace @(Model.ProjectName).Web.Areas.Plat.Models
{
    [AutoMapFrom(typeof(@(Model.TableName)InputDto))]
    public class @(Model.TableName)ViewModel : @(Model.TableName)InputDto
    {
    @{
        List<TypeColumnName> webuploadColunm = new List<TypeColumnName>();
        if(Model.TypeColumnNames!=null)
        {
            foreach (TypeColumnName item in Model.TypeColumnNames)
            {
                if (item.WebuploadColunm.IsWebUpload)
                {
                    webuploadColunm.Add(item);
                }
            }
        }
    }
        public @(Model.TableName)ViewModel(@(Model.TableName)InputDto @(Model.TableNameCamel)Input @foreach (TypeColumnName item in webuploadColunm)
{
@Html.Raw(",List<AbpFileOutput> " + item.ColumnNameCamel + "Outputs" );
})
        {
          @(Model.TableNameCamel)Input.MapTo(this);
            @foreach (TypeColumnName item in webuploadColunm)
            {
@Html.Raw("          " + item.ColumnName + "Outputs=" + item.ColumnNameCamel + "Outputs;\r\n");
            }
        }
        @foreach (TypeColumnName item in webuploadColunm)
        {
@Html.Raw("         public List<AbpFileOutput> " + item.ColumnName + "Outputs { get;set; } \r\n")
        }
    }
}